package com.baymax.study.kafka.customize;

import java.util.concurrent.BlockingQueue;
import java.util.concurrent.LinkedBlockingQueue;

/**
 * @author baymax
 * @since 2025-05-18
 */
public class QueueTest2 {
    public static void main(String[] args) {
        BlockingQueue<Integer> blockingQueue = new LinkedBlockingQueue<>(10);
        for (int i = 0; i < 11; i++) {
            blockingQueue.add(i);
        }
        System.out.println(blockingQueue.size());
    }
}
